/*
 * Vectrics 
 * Created on Feb 1, 2004
 *
 */
package org.vectrics.common.graphics;

import javax.servlet.http.*;
import org.vectrics.common.reporting.pdf.LogoWriter;
import java.awt.Graphics2D;


/**
 * @author mmoore
 *
 * To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
public class LogoGraphic extends Graphic {
	private int logoHeight = 30;
	
	public LogoGraphic(HttpServletRequest request) {
		super();
	}
	
	public int getHeight() {
		return(40);
	}
	
	public int getWidth() {
		return(400);
	}
	
	public void doFill(Graphics2D g2) {
		LogoWriter logoWriter = new LogoWriter(g2);
		logoWriter.drawLogo(0, 0, logoHeight, g2);
		
	}


}
